<template>
	<view class="sons">
		<view class="uni-list" v-if="sons.length> 0">
			<view class="uni-list-cell" v-for="(item,index) in sons" :key="index">
				<view class="uni-list-cell-navigate">
					{{item.value}}
					<view>
						<view>帐户：{{item.phone}}</view>
						<view>推荐人：{{item.recommend}}</view>
					</view>
					<view>
						<view>级别: {{item.grade_text}}</view>
						<view>{{item.time}}</view>
					</view>
				</view>
			</view>
		</view>
		
		<view class="no-data" v-else>你还没有粉丝</view>
	</view>
</template>

<script>
	import Request from '../../common/request.js';
	
	export default {
		data() {
			return {
				sons: []
			};
		},
		onLoad() {
			this.getSons();
		},
		methods: {
			getSons() {
				var that = this;
				Request.send({
					url: 'user/sons',
					sCallback: function(res) {
						that.sons = res.data.son1;
					}
				})
			}
		},
	}
</script>

<style>

</style>
